<?php
function smarty_modifier_lable($sAttr, $sClass)
{
	static $rLable;
	if (!isset($rLable)) {
		$sClass = 'u'.$sClass;
		if (is_file(__PHY_LIB."/class/{$sClass}.class.php")) {
			require_once(__PHY_LIB."/class/{$sClass}.class.php");
		}
		else { return $sAttr; }
		$oOne = new $sClass();
		$rLable = $oOne->getAttrLable();
	}
	if (!isset($rLable)) { return $sAttr; }
	if (!isset($rLable[$sAttr])) { return $sAttr; }
	else { return $rLable[$sAttr]; }
}
?>
